<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopMaintainBusinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_maintain_busin', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('shop_id',10)->comment('商户id');
            $table->integer('maintainer_id')->comment('系统维护人id');
            $table->string('parent_mobile',11)->comment('负责人账号');
            $table->string('parent_name',255)->comment('负责人姓名');
            $table->string('id_card',18)->comment('身份证号');
            $table->string('card_holder',30)->comment('持卡人');
            $table->string('bank_name',20)->comment('所属银行');
            $table->string('bank_card',30)->comment('银行卡号');
            $table->string('open_card_bank',30)->comment('开户行');
            $table->string('bank_province',30)->comment('银行卡所属省');
            $table->string('bank_city',30)->comment('银行卡所属市');
            $table->string('bank_card_photo',255)->comment('银行卡正面照');
            $table->string('license_photo',255)->comment('营业执照照片');
            $table->string('contract_photo_list',255)->comment('合同图片');
            $table->string('idcard_front_photo',255)->comment('身份证正面照');
            $table->string('idcard_back_photo',255)->comment('身份证背面照');
            $table->date('contract_start_time')->comment('合约开始时间');
            $table->date('contract_end_time')->comment('合约截止时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('shops_maintain_busin');
    }
}
